import request from '@/utils/request'
const apix = 'dev-api'
// api地址
const api = {
	economics_list: apix + '/serve/economics/list',
	economics_export: apix + '/serve/economics/export',
	serve_economics: apix + '/serve/economics',
	// serve_economics: apix + '/serve/economics',
	serve_economicsId: apix + '/serve/economics/',
}

//查询家政信息列表
export function economicsList(obj) {
	return request.get(api.economics_list, {
		...obj
	})
}
//导出家政信息列表
export function economicsExport(obj) {
	return request.post(api.economics_export, {
		...obj
	})
}
//获取家政信息详细信息
export function economicsId(id) {
	return request.get(api.serve_economicsId + id)
}
//新增家政信息
export function addeconomics(obj) {
	return request.post(api.serve_economics, {
		...obj
	})
}
//修改家政信息
export function puteconomics(obj) {
	return request.put(api.serve_economics, {
		...obj
	})
}
//删除家政信息
export function deleconomics(id) {
	return request.delete(api.serve_economicsId + id)
}